-- GENERATED SPELL FOR [Razorfen Thornweaver] --


function spell0_7874(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(11431,pUnit)
pUnit:RegisterEvent('Sorts_7874', 3000, 1)
end

function spell1_7874(pUnit, Event) --@Thorns Aura,n/a--
pUnit:FullCastSpellOnTarget(7966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7874', 0, 1)
end

function Sorts_7874(pUnit, Event)
local choix_sorts_7874 = math.random(0, 1)
if choix_sorts_7874 == 0 then
pUnit:RegisterEvent('spell0_7874', 1, 1)
end
if choix_sorts_7874 == 1 then
pUnit:RegisterEvent('spell1_7874', 1, 1)
end
end

function mob7874_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7874', math.random(1500, 3000), 1)
end

function mob7874_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7874_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7874_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7874, 1, 'mob7874_Action')
RegisterUnitEvent(7874, 2, 'mob7874_Leave')
RegisterUnitEvent(7874, 3, 'mob7874_Kill')
RegisterUnitEvent(7874, 4, 'mob7874_Die')
